package com.yxw.live_vod_backend_boot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 店铺提现记录
 * @author xiexuxin
 * @date 2024-01-03
 */
@Data
@TableName(value ="Yx_withdrawal_record")
@ApiModel(value = "店铺提现记录 " , description="Yx_withdrawal_record")
public class YxWithdrawalRecordEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "withdraw_deposit_id",type = IdType.ASSIGN_ID)
    @ApiModelProperty(value="主键")
    private Long withdrawDepositId;

    @TableField(value="shop_id")
    @ApiModelProperty(value="店铺ID")
    private Long shopId;

    @TableField(value="shop_name")
    @ApiModelProperty(value="店铺名称")
    private String shopName;

    @TableField(value="merchant_id")
    @ApiModelProperty(value="商户ID")
    private Long merchantId;

    @TableField(value="merchant_name")
    @ApiModelProperty(value="商户名称")
    private String merchantName;

    @TableField(value="amount")
    @ApiModelProperty(value="金额")
    private String amount;

    @TableField(value="withdraw_time")
    @ApiModelProperty(value="交易时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date withdrawTime;

    @TableField(value="status")
    @ApiModelProperty(value="状态，0表示提现中, 1表示提现成功, 2表示提现失败")
    private Integer status;

}
